@extends('store::layout')
@section('title',trans($page_title))
@section('content')
    <div class="card-box">
        <div class="row"><div class="col-sm-12 mb-2">
                @component('store::component.form.button')
                    @slot('title') 修改信息 @endslot
                    @slot('elem') a @endslot
                    @slot('btn') btn @endslot
                    @slot('color') primary @endslot
                    @slot('icon') hcl-edit @endslot
                    @slot('href') {{route('Store_updateInfo')}} @endslot
                @endcomponent
            </div></div>
        <div class="row mb-5"><div class="col-sm-12">
                @if($info)
                    <table class="table table-bordered info-card">
                        <tbody>
                        <tr><td rowspan="4" style="min-width: 225px;width: 225px">
                                <div class="d-flex flex-column  text-center m-3" >
                                    <img src="{{$info->store_logo}}" style="height: 100px;" class="rounded">
                                    <span class="text-muted mt-2">{{$info->store_name}}</span>
                                </div>
                            </td>
                            <td class="table-active">会员信息</td>
                            <td>会员ID{{$info->user->user_number}}<br/>
                                手机号:{{$info->user->user_phone}}
                            </td>
                            <td class="table-active">经营范围</td>
                            <td>
                                @foreach($category as $title)
                                    {{$title}} @if(!$loop->last) > @endif
                                @endforeach
                            </td>
                        </tr>
                        <tr><td class="table-active">累计营收</td>
                            <td>{{$info->all_money}}</td>
                            <td class="table-active">待结算金额</td>
                            <td>{{$info->has_money}}</td>
                        </tr>
                        <tr><td class="table-active">地址</td><td colspan="5">
                                {{$info->info->entity_comArea ?? ''}}{{$info->info->company_address ?? ''}}
                            </td>
                        </tr>
                        </tbody>
                    </table>
                @else
                    @component('store::public.empty_page')
                        @slot('info')查询店铺 @endslot
                    @endcomponent
                @endif
            </div></div>
    </div>
@endsection